cfgFile.setRemotePollInterval(interval);
}
-void GeneralSettings::updatePollIntervalVisibility() {
+void GeneralSettings::updatePollIntervalVisibility()
+{
const auto accounts = AccountManager::instance()->accounts();
- const auto pushAvailable = std::any_of(accounts.cbegin(), accounts.cend(),
- [](const AccountStatePtr &accountState) -> bool {
- if (!accountState)
+ const auto pushAvailable = std::any_of(accounts.cbegin(), accounts.cend(), [](const AccountStatePtr &accountState) -> bool {
+ if (!accountState) {
return false;
- AccountPtr accountPtr = accountState->account();
- if (!accountPtr)
+ }
+ const auto accountPtr = accountState->account();
+ if (!accountPtr) {
return false;
+ }
return accountPtr->capabilities().availablePushNotifications().testFlag(PushNotificationType::Files);
});
<item>
<widget class="QLabel" name="labelInterval">
<property name="text">
- <string><html><head/><body><p>seconds (if <a href="https://github.com/nextcloud/notify_push"><span style=" text-decoration: underline; color:#2980b9;">Client Push</span></a> is unavailable)</p></body></html></string>
+ <string>seconds (if <a href="https://github.com/nextcloud/notify_push">Client Push</a> is unavailable)</string>
</property>
<property name="textFormat">
<enum>Qt::TextFormat::RichText</enum>
<bool>true</bool>
</property>
<property name="textInteractionFlags">
- <set>Qt::TextInteractionFlag::TextBrowserInteraction</set>
+ <set>Qt::TextInteractionFlag::LinksAccessibleByKeyboard|Qt::TextInteractionFlag::LinksAccessibleByMouse</set>
</property>
</widget>
</item>